package com.hotel.common.user.service;

import com.hotel.common.param.RestPwd;
import com.hotel.common.param.UserAdd;
import com.hotel.common.param.UserLogin;
import com.hotel.common.vo.R;
import com.hotel.common.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author mz
 * @since 2024-06-15
 */
public interface UserService extends IService<User> {

    R register(HttpServletRequest request, UserAdd userAdd);

    R loginpass(HttpServletRequest request,UserLogin userLogin);

    R logincode(HttpServletRequest request, UserLogin userLogin);


    R reset(RestPwd restPwd);

    R logout(String token);

    R findUserInfoById(Integer id);
}
